package com.cmc.cloud.cmclink.doc.api.document;

import com.cmc.cloud.cmclink.doc.api.document.rep.BlnoFobReqDto;
import com.cmc.cloud.cmclink.doc.api.document.rep.BlnoFobRespDto;
import com.cmc.cloud.cmclink.doc.api.document.rep.BlnoNumericalContainerRespDto;
import com.cmc.cloud.cmclink.doc.constant.DocApiConstants;
import com.cmes.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * 订舱拆分合并
 *
 * @author codegen
 */
@FeignClient(name = DocApiConstants.NAME)
@Tag(name = "RPC - 服务 提单报表接口")
public interface SiQueryApi {

    String PREFIX = DocApiConstants.PREFIX + "/blnoQuery";

    /**
     * FOB统计信息
     *
     * @param reqVo 更正DTO
     * @return void
     */
    @Operation(summary = "FOB统计信息")
    @PostMapping(PREFIX + "/queryFobInfo")
    public CommonResult<BlnoFobRespDto> queryFobInfo(@Valid @RequestBody BlnoFobReqDto reqVo);


    /**
     * 集装箱装载清单
     *
     * @param reqVo 更正DTO
     * @return void
     */
    @Operation(summary = "集装箱装载清单")
    @PostMapping(PREFIX + "/queryNumericalContainerListInfo")
    public CommonResult<BlnoNumericalContainerRespDto> queryNumericalContainerListInfo(@Valid @RequestBody BlnoFobReqDto reqVo);

}
